/*
 * Title: WADS
 * Description: Web-based Auto flow Documents System
 * Copyright: 2007
 * Company: CoE
 * @author: Mr.Nattasan Wang-Aphisit
 * @version 1.1
 */

package sandbox;

import java.awt.Button;
import java.awt.Font;
import java.awt.Label;
import java.awt.List;
import java.awt.Rectangle;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

@Deprecated
public class DocumentDialog extends JDialog {
//  private static final long serialVersionUID = 3739905073369151566L;
  
  //Constant for HTML form file path
  private JPanel panel1 = new JPanel();
  private JPanel firstPanel = new JPanel();
  private JPanel secondPanel = new JPanel();
  private JTabbedPane TabPane1 = new JTabbedPane();
  //private TitledBorder titledBorder1;
  private JLabel jLabel1 = new JLabel();
  private JList jList1 = new JList();
  private Button chooseButton = new Button();
  private Button okButton = new Button();
  private JFileChooser chooser = new JFileChooser();
//  private Font labelFont = new Font("CordiaUPC",Font.PLAIN,17);
  private List list1 = new List();
  private Label label1 = new Label();

  public DocumentDialog() {
    super();
    try {
      jbInit();
      pack();
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }


  private void jbInit() throws Exception {
    //titledBorder1 = new TitledBorder("");
    panel1.setLayout(null);
    this.getContentPane().setLayout(null);
//    TabPane1.setFont(labelFont);
    TabPane1.setBounds(new Rectangle(0, 0, 240, 190));
    TabPane1.addTab("Basic Setting", firstPanel);
    TabPane1.addTab("Advance Setting", secondPanel);

    panel1.setBounds(new Rectangle(10, 10, 240, 190));
    this.setResizable(false);
    this.setTitle("Document Setting");
//    this.setFont(labelFont);

    chooser.setDialogType(JFileChooser.CUSTOM_DIALOG);
    list1.setBounds(new Rectangle(45, 22, 133, 22));
//    list1.setFont(labelFont);

    label1.setText("���");
    label1.setBounds(new Rectangle(3, 23, 43, 20));
//    label1.setFont(labelFont);
    firstPanel.add(jLabel1, null);
    firstPanel.add(jList1, null);
    firstPanel.add(okButton, null);
    firstPanel.add(chooseButton, null);
    firstPanel.add(list1, null);
    firstPanel.add(label1, null);

    //jLabel1.setForeground(Color.black);
    //jLabel1.setFont(labelFont);
    //jLabel1.setBounds(new Rectangle(0, 21, 91, 22));
    //jLabel1.setText("��������ͧ");
    //jList1.setBorder(BorderFactory.createLoweredBevelBorder());
    //jList1.setBounds(new Rectangle(56, 19, 152, 24));
    chooseButton.setLabel("���͡");
    chooseButton.setBounds(new Rectangle(177, 23, 56, 21));
//    chooseButton.setFont(labelFont);

    okButton.setLabel("��ŧ");
    okButton.setBounds(new Rectangle(80, 125, 63, 26));
//    okButton.setFont(labelFont);


    firstPanel.setFont(new Font("CordiaUPC", 0, 18));
    firstPanel.setLayout(null);
    secondPanel.setFont(new Font("CordiaUPC", 0, 18));
    secondPanel.setLayout(null);

//    panel1.setFont(labelFont);
    panel1.add(TabPane1, null);
    getContentPane().add(panel1, null);
    TabPane1.setSelectedComponent(secondPanel);
  }
}